package net.prasenjit.test.webmvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("dojo")
public class DojoController {

    @RequestMapping
    public String index() {
        // AndFilter filter = new AndFilter();
        // filter.and(new EqualsFilter("objectclass", "person")).and(new
        // EqualsFilter("uid", "user1"));
        // boolean authenticated = ldapTemplate.authenticate("",
        // filter.toString(), "secret");
        // System.out.println(authenticated);
        // Object lookup = ldapTemplate.lookup("uid=user1");
        // System.out.println(lookup);
        return "dojo";
    }
}
